package com.hx.entry;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
//@AllArgsConstructor
//@NoArgsConstructor
//@Builder
//@Accessors(chain = true)
@TableName("cangku")
public class CangKuImportDTO {
    @TableId(type = IdType.INPUT)
    @ExcelProperty(index = 0)
    private Long code;

    @ExcelProperty(index = 1)
    private String name;

    @ExcelProperty(index = 2)
    private Double zd;

    @ExcelProperty(index = 3)
    private Double jz;

    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(index = 4)
    private Date cangKuDate;
}